import "./assets/css/base.css";
import "./assets/css/reset.scss";
import "./assets/css/normalize.css";
import "./assets/css/common.scss";
import "@/eventBus/httpErrorHandle";
import i18n from "@/lang";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import { createApp } from "vue";
import { createPinia } from "pinia";

// custom directives
import directives from "@/directives/index";

import router from "./router";
import App from "./App.vue";

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(createPinia());
app.use(ElementPlus);
app.use(router);
app.use(i18n);
app.use(directives);
app.mount("#app");
